package com.molichuxing.services.infrastructure.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.PyAntiSpoofingRequestLogBean;
import com.molichuxing.services.infrastructure.dao.PyAntiSpoofingRequestLogMapper;
import com.molichuxing.services.infrastructure.dto.request.create.PyAntiSpoofingRequestLogCreateDto;
import com.molichuxing.services.infrastructure.service.PyAntiSpoofingRequestLogService;
/**
 * 
 * @author liyg
 * 鹏元个人反欺诈服务
 * 2019-09-23
 *
 */
@Service("pyAntiSpoofingRequestLogService")
public class PyAntiSpoofingRequestLogServiceImpl implements PyAntiSpoofingRequestLogService{

	@Autowired
	private PyAntiSpoofingRequestLogMapper pyAntiSpoofingRequestLogMapper;
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	@Override
	public Integer create(PyAntiSpoofingRequestLogCreateDto createDto) {
		PyAntiSpoofingRequestLogBean bean=new PyAntiSpoofingRequestLogBean();
		BeanUtils.copyProperties(createDto, bean);
		pyAntiSpoofingRequestLogMapper.create(bean);
		return bean.getId();
	}
}
